﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <link href="~/Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" />
    <link href="~/Scripts/ligerUI/skins/ligerui-icons.css" rel="stylesheet" />
    <link href="~/Scripts/ligerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="~/Content/css/common.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ligerUI/js/ligerui.all.js"></script>
    <script src="~/Scripts/common.js"></script>
    <style>
        .gridtable {
            width: 370px;
            margin: 0px;
        }

            .gridtable td {
                height: 30px;
                line-height: 30px;
            }

        .iconlist {
            width: 360px;
            padding: 3px;
        }

            .iconlist li {
                border: 1px solid #FFFFFF;
                float: left;
                display: block;
                padding: 2px;
                cursor: pointer;
            }

                .iconlist li.over {
                    border: 1px solid #516B9F;
                }

                .iconlist li img {
                    height: 16px;
                    height: 16px;
                }
    </style>
</head>
<body>
    <div style="margin:10px 0px;">
        <table class="gridtable">
            <tr>
                <td style="text-align:right; width:100px;">
                    路径事件名称：
                </td>
                <td>
                    <input type="text" id="txtPathWayName" class="l-text" style="width:250px;" value="" /><font style="color:red;">&nbsp;*</font>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width:100px;">
                    排序：
                </td>
                <td>
                    <input type="text" id="txtPathSort" class="l-text" style="width:250px;" value="0" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center;padding-top:10px;">
                    <input id="btnSubmit" type="button" value="确定" class="l-button" style="background: skyblue;" onclick="save()" />&nbsp;&nbsp;&nbsp;
                    <input id="btnCancel" type="button" value="取消" class="l-button" onclick="closeDialog()" />
                </td>
            </tr>
            <tr></tr>
        </table>
        <input type="hidden" id="hdnId" value="" />
    </div>
    <script type="text/javascript">
        function save()
        {
            $("#txtPathWayName").val();
            $("#txtPathSort").val();
            if ($("#txtPathWayName").val() == "")
            { $("#txtPathWayName").focus(); return; }
            var url = "../PathwaySet/SaveEvent";
            $.post(url, {
                rnd: new Date().getMilliseconds(),
                pathEventName:$("#txtPathWayName").val(),
                pathEventSort: $("#txtPathSort").val()
            }, function (data, textStatus) {
                if (textStatus == "success") {
                    alert(data);
                }
            })
        }
    </script>
</body>
</html>